package com.gs.weather.dao.mapper;

import com.gs.weather.entity.DisasterType;
import com.gs.weather.vo.LinkageFrameVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Repository
public interface DisasterTypeMapper {

    //添加灾害类型
    void addDisasterType(DisasterType disasterType);

    //更新灾害类型
    void updateDisasterType(DisasterType disasterType);


    //查询所有灾害类型（手动分页）
    List<DisasterType> queryAllDisasterType(@Param("from") Integer from,@Param("to") Integer to);

    //查询所有灾害总数
    int queryTypeCount();



    //删除灾害类型
    void deleteDisasterType(int id);

}
